<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>pytils.templatetags.pytils_dt</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pytils-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="pytils-module.html">Package&nbsp;pytils</a> ::
        <a href="pytils.templatetags-module.html">Package&nbsp;templatetags</a> ::
        Module&nbsp;pytils_dt
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript: void(0);" class="privatelink"
    onclick="toggle_private();">hide private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="pytils.templatetags.pytils_dt-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="pytils.templatetags.pytils_dt-module.html">Module pytils.templatetags.pytils_dt</a></h1>
<pre class="py-src">
<span class="py-lineno">  1</span>  <span class="py-line"><span class="py-comment"># -*- coding: utf-8 -*-</span> </span>
<span class="py-lineno">  2</span>  <span class="py-line"><span class="py-comment"></span><span class="py-comment"># License: GNU GPL2</span> </span>
<span class="py-lineno">  3</span>  <span class="py-line"><span class="py-comment"></span><span class="py-comment"># Author: Pythy &lt;the.pythy@gmail.com&gt;</span> </span>
<span class="py-lineno">  4</span>  <span class="py-line"><span class="py-comment"></span><span class="py-docstring">"""</span> </span>
<span class="py-lineno">  5</span>  <span class="py-line"><span class="py-docstring">pytils.dt templatetags for Django web-framework</span> </span>
<span class="py-lineno">  6</span>  <span class="py-line"><span class="py-docstring">"""</span> </span>
<span class="py-lineno">  7</span>  <span class="py-line"> </span>
<span class="py-lineno">  8</span>  <span class="py-line"><span id="link-0" class="py-name"><a title="pytils.__id__
pytils.dt.__id__
pytils.numeral.__id__
pytils.templatetags.__id__
pytils.templatetags.pytils_dt.__id__
pytils.templatetags.pytils_numeral.__id__
pytils.templatetags.pytils_translit.__id__
pytils.test.__id__
pytils.test.test_dt.__id__
pytils.test.test_numeral.__id__
pytils.test.test_translit.__id__
pytils.test.test_utils.__id__
pytils.translit.__id__
pytils.utils.__id__" class="py-name" href="#" onclick="doclink('link-0', '__id__', 'Variable pytils.__id__=pytils-module.html#__id__,Variable pytils.dt.__id__=pytils.dt-module.html#__id__,Variable pytils.numeral.__id__=pytils.numeral-module.html#__id__,Variable pytils.templatetags.__id__=pytils.templatetags-module.html#__id__,Variable pytils.templatetags.pytils_dt.__id__=pytils.templatetags.pytils_dt-module.html#__id__,Variable pytils.templatetags.pytils_numeral.__id__=pytils.templatetags.pytils_numeral-module.html#__id__,Variable pytils.templatetags.pytils_translit.__id__=pytils.templatetags.pytils_translit-module.html#__id__,Variable pytils.test.__id__=pytils.test-module.html#__id__,Variable pytils.test.test_dt.__id__=pytils.test.test_dt-module.html#__id__,Variable pytils.test.test_numeral.__id__=pytils.test.test_numeral-module.html#__id__,Variable pytils.test.test_translit.__id__=pytils.test.test_translit-module.html#__id__,Variable pytils.test.test_utils.__id__=pytils.test.test_utils-module.html#__id__,Variable pytils.translit.__id__=pytils.translit-module.html#__id__,Variable pytils.utils.__id__=pytils.utils-module.html#__id__'); return false;">__id__</a></span></span> <span class="py-op">=</span> <span id="link-1" class="py-name"><a title="pytils.__revision__
pytils.dt.__revision__
pytils.numeral.__revision__
pytils.templatetags.__revision__
pytils.templatetags.pytils_dt.__revision__
pytils.templatetags.pytils_numeral.__revision__
pytils.templatetags.pytils_translit.__revision__
pytils.test.__revision__
pytils.test.test_dt.__revision__
pytils.test.test_numeral.__revision__
pytils.test.test_translit.__revision__
pytils.test.test_utils.__revision__
pytils.translit.__revision__
pytils.utils.__revision__" class="py-name" href="#" onclick="doclink('link-1', '__revision__', 'Variable pytils.__revision__=pytils-module.html#__revision__,Variable pytils.dt.__revision__=pytils.dt-module.html#__revision__,Variable pytils.numeral.__revision__=pytils.numeral-module.html#__revision__,Variable pytils.templatetags.__revision__=pytils.templatetags-module.html#__revision__,Variable pytils.templatetags.pytils_dt.__revision__=pytils.templatetags.pytils_dt-module.html#__revision__,Variable pytils.templatetags.pytils_numeral.__revision__=pytils.templatetags.pytils_numeral-module.html#__revision__,Variable pytils.templatetags.pytils_translit.__revision__=pytils.templatetags.pytils_translit-module.html#__revision__,Variable pytils.test.__revision__=pytils.test-module.html#__revision__,Variable pytils.test.test_dt.__revision__=pytils.test.test_dt-module.html#__revision__,Variable pytils.test.test_numeral.__revision__=pytils.test.test_numeral-module.html#__revision__,Variable pytils.test.test_translit.__revision__=pytils.test.test_translit-module.html#__revision__,Variable pytils.test.test_utils.__revision__=pytils.test.test_utils-module.html#__revision__,Variable pytils.translit.__revision__=pytils.translit-module.html#__revision__,Variable pytils.utils.__revision__=pytils.utils-module.html#__revision__'); return false;">__revision__</a></span></span> <span class="py-op">=</span> <span class="py-string">"$Id: pytils_dt.py 29 2006-10-21 08:28:27Z the.pythy $"</span> </span>
<span class="py-lineno">  9</span>  <span class="py-line"><span id="link-2" class="py-name"><a title="pytils.__url__
pytils.dt.__url__
pytils.numeral.__url__
pytils.templatetags.__url__
pytils.templatetags.pytils_dt.__url__
pytils.templatetags.pytils_numeral.__url__
pytils.templatetags.pytils_translit.__url__
pytils.test.__url__
pytils.test.test_dt.__url__
pytils.test.test_numeral.__url__
pytils.test.test_translit.__url__
pytils.test.test_utils.__url__
pytils.translit.__url__
pytils.utils.__url__" class="py-name" href="#" onclick="doclink('link-2', '__url__', 'Variable pytils.__url__=pytils-module.html#__url__,Variable pytils.dt.__url__=pytils.dt-module.html#__url__,Variable pytils.numeral.__url__=pytils.numeral-module.html#__url__,Variable pytils.templatetags.__url__=pytils.templatetags-module.html#__url__,Variable pytils.templatetags.pytils_dt.__url__=pytils.templatetags.pytils_dt-module.html#__url__,Variable pytils.templatetags.pytils_numeral.__url__=pytils.templatetags.pytils_numeral-module.html#__url__,Variable pytils.templatetags.pytils_translit.__url__=pytils.templatetags.pytils_translit-module.html#__url__,Variable pytils.test.__url__=pytils.test-module.html#__url__,Variable pytils.test.test_dt.__url__=pytils.test.test_dt-module.html#__url__,Variable pytils.test.test_numeral.__url__=pytils.test.test_numeral-module.html#__url__,Variable pytils.test.test_translit.__url__=pytils.test.test_translit-module.html#__url__,Variable pytils.test.test_utils.__url__=pytils.test.test_utils-module.html#__url__,Variable pytils.translit.__url__=pytils.translit-module.html#__url__,Variable pytils.utils.__url__=pytils.utils-module.html#__url__'); return false;">__url__</a></span></span> <span class="py-op">=</span> <span class="py-string">"$URL: https://pythy.googlecode.com/svn/trunk/pytils/pytils/templatetags/pytils_dt.py $"</span> </span>
<span class="py-lineno"> 10</span>  <span class="py-line"> </span>
<span class="py-lineno"> 11</span>  <span class="py-line"><span class="py-keyword">import</span> <span class="py-name">time</span> </span>
<span class="py-lineno"> 12</span>  <span class="py-line"><span class="py-keyword">from</span> <span class="py-name">django</span> <span class="py-keyword">import</span> <span class="py-name">template</span><span class="py-op">,</span> <span class="py-name">conf</span> </span>
<span class="py-lineno"> 13</span>  <span class="py-line"><span class="py-keyword">from</span> <span id="link-3" class="py-name"><a title="pytils" class="py-name" href="#" onclick="doclink('link-3', 'pytils', 'Package pytils=pytils-module.html'); return false;">pytils</a></span></span> <span class="py-keyword">import</span> <span id="link-4" class="py-name"><a title="pytils.dt" class="py-name" href="#" onclick="doclink('link-4', 'dt', 'Module pytils.dt=pytils.dt-module.html'); return false;">dt</a></span></span><span class="py-op">,</span> <span id="link-5" class="py-name"><a title="pytils.utils" class="py-name" href="#" onclick="doclink('link-5', 'utils', 'Module pytils.utils=pytils.utils-module.html'); return false;">utils</a></span></span> </span>
<span class="py-lineno"> 14</span>  <span class="py-line"> </span>
<span class="py-lineno"> 15</span>  <span class="py-line"><span id="link-6" class="py-name"><a title="pytils.templatetags.pytils_dt.register
pytils.templatetags.pytils_numeral.register
pytils.templatetags.pytils_translit.register" class="py-name" href="#" onclick="doclink('link-6', 'register', 'Variable pytils.templatetags.pytils_dt.register=pytils.templatetags.pytils_dt-module.html#register,Variable pytils.templatetags.pytils_numeral.register=pytils.templatetags.pytils_numeral-module.html#register,Variable pytils.templatetags.pytils_translit.register=pytils.templatetags.pytils_translit-module.html#register'); return false;">register</a></span></span> <span class="py-op">=</span> <span class="py-name">template</span><span class="py-op">.</span><span class="py-name">Library</span><span class="py-op">(</span><span class="py-op">)</span>  <span class="py-comment">#: Django template tag/filter registrator</span> </span>
<span class="py-lineno"> 16</span>  <span class="py-line"><span id="link-7" class="py-name"><a title="pytils.templatetags.pytils_dt.encoding
pytils.templatetags.pytils_numeral.encoding
pytils.templatetags.pytils_translit.encoding" class="py-name" href="#" onclick="doclink('link-7', 'encoding', 'Variable pytils.templatetags.pytils_dt.encoding=pytils.templatetags.pytils_dt-module.html#encoding,Variable pytils.templatetags.pytils_numeral.encoding=pytils.templatetags.pytils_numeral-module.html#encoding,Variable pytils.templatetags.pytils_translit.encoding=pytils.templatetags.pytils_translit-module.html#encoding'); return false;">encoding</a></span></span> <span class="py-op">=</span> <span class="py-name">conf</span><span class="py-op">.</span><span class="py-name">settings</span><span class="py-op">.</span><span class="py-name">DEFAULT_CHARSET</span>  <span class="py-comment">#: Current charset (sets in Django project's settings)</span> </span>
<span class="py-lineno"> 17</span>  <span class="py-line"><span id="link-8" class="py-name"><a title="pytils.templatetags.pytils_dt.debug
pytils.templatetags.pytils_numeral.debug
pytils.templatetags.pytils_translit.debug" class="py-name" href="#" onclick="doclink('link-8', 'debug', 'Variable pytils.templatetags.pytils_dt.debug=pytils.templatetags.pytils_dt-module.html#debug,Variable pytils.templatetags.pytils_numeral.debug=pytils.templatetags.pytils_numeral-module.html#debug,Variable pytils.templatetags.pytils_translit.debug=pytils.templatetags.pytils_translit-module.html#debug'); return false;">debug</a></span></span> <span class="py-op">=</span> <span class="py-name">conf</span><span class="py-op">.</span><span class="py-name">settings</span><span class="py-op">.</span><span class="py-name">DEBUG</span>  <span class="py-comment">#: Debug mode (sets in Django project's settings)</span> </span>
<span class="py-lineno"> 18</span>  <span class="py-line"><span id="link-9" class="py-name"><a title="pytils.templatetags.pytils_dt.show_value
pytils.templatetags.pytils_numeral.show_value
pytils.templatetags.pytils_translit.show_value" class="py-name" href="#" onclick="doclink('link-9', 'show_value', 'Variable pytils.templatetags.pytils_dt.show_value=pytils.templatetags.pytils_dt-module.html#show_value,Variable pytils.templatetags.pytils_numeral.show_value=pytils.templatetags.pytils_numeral-module.html#show_value,Variable pytils.templatetags.pytils_translit.show_value=pytils.templatetags.pytils_translit-module.html#show_value'); return false;">show_value</a></span></span> <span class="py-op">=</span> <span class="py-name">getattr</span><span class="py-op">(</span><span class="py-name">conf</span><span class="py-op">.</span><span class="py-name">settings</span><span class="py-op">,</span> <span class="py-string">'PYTILS_SHOW_VALUES_ON_ERROR'</span><span class="py-op">,</span> <span class="py-name">False</span><span class="py-op">)</span>  <span class="py-comment">#: Show values on errors (sets in Django project's settings)</span> </span>
<span class="py-lineno"> 19</span>  <span class="py-line"> </span>
<span class="py-lineno"> 20</span>  <span class="py-line"><span class="py-comment"># &#1045;&#1089;&#1083;&#1080; &#1086;&#1090;&#1083;&#1072;&#1076;&#1082;&#1072;, &#1090;&#1086; &#1087;&#1086;&#1082;&#1072;&#1079;&#1099;&#1074;&#1072;&#1077;&#1084; 'unknown+&#1089;&#1086;&#1086;&#1073;&#1097;&#1077;&#1085;&#1080;&#1077; &#1086;&#1073; &#1086;&#1096;&#1080;&#1073;&#1082;&#1077;'.</span> </span>
<span class="py-lineno"> 21</span>  <span class="py-line"><span class="py-comment"></span><span class="py-comment"># &#1045;&#1089;&#1083;&#1080; &#1086;&#1090;&#1083;&#1072;&#1076;&#1082;&#1072; &#1074;&#1099;&#1082;&#1083;&#1102;&#1095;&#1077;&#1085;&#1072;, &#1090;&#1086; &#1084;&#1086;&#1078;&#1085;&#1086; &#1095;&#1090;&#1086;&#1073;&#1099; &#1087;&#1088;&#1080; &#1086;&#1096;&#1080;&#1073;&#1082;&#1072;&#1093; &#1087;&#1086;&#1082;&#1072;&#1079;&#1099;&#1074;&#1072;&#1083;&#1086;&#1089;&#1100;</span> </span>
<span class="py-lineno"> 22</span>  <span class="py-line"><span class="py-comment"></span><span class="py-comment"># &#1079;&#1085;&#1072;&#1095;&#1077;&#1085;&#1080;&#1077;, &#1087;&#1077;&#1088;&#1077;&#1076;&#1072;&#1085;&#1085;&#1086;&#1077; &#1092;&#1080;&#1083;&#1100;&#1090;&#1088;&#1091; (PYTILS_SHOW_VALUES_ON_ERROR=True)</span> </span>
<span class="py-lineno"> 23</span>  <span class="py-line"><span class="py-comment"></span><span class="py-comment"># &#1083;&#1080;&#1073;&#1086; &#1087;&#1091;&#1089;&#1090;&#1072;&#1103; &#1089;&#1090;&#1088;&#1086;&#1082;&#1072;.</span> </span>
<span class="py-lineno"> 24</span>  <span class="py-line"><span class="py-comment"></span> </span>
<span class="py-lineno"> 25</span>  <span class="py-line"><span class="py-keyword">if</span> <span id="link-10" class="py-name"><a title="pytils.templatetags.pytils_dt.debug
pytils.templatetags.pytils_numeral.debug
pytils.templatetags.pytils_translit.debug" class="py-name" href="#" onclick="doclink('link-10', 'debug', 'Variable pytils.templatetags.pytils_dt.debug=pytils.templatetags.pytils_dt-module.html#debug,Variable pytils.templatetags.pytils_numeral.debug=pytils.templatetags.pytils_numeral-module.html#debug,Variable pytils.templatetags.pytils_translit.debug=pytils.templatetags.pytils_translit-module.html#debug'); return false;">debug</a></span></span><span class="py-op">:</span> </span>
<span class="py-lineno"> 26</span>  <span class="py-line">    <span id="link-11" class="py-name"><a title="pytils.templatetags.pytils_dt.default_value
pytils.templatetags.pytils_numeral.default_value
pytils.templatetags.pytils_translit.default_value" class="py-name" href="#" onclick="doclink('link-11', 'default_value', 'Variable pytils.templatetags.pytils_dt.default_value=pytils.templatetags.pytils_dt-module.html#default_value,Variable pytils.templatetags.pytils_numeral.default_value=pytils.templatetags.pytils_numeral-module.html#default_value,Variable pytils.templatetags.pytils_translit.default_value=pytils.templatetags.pytils_translit-module.html#default_value'); return false;">default_value</a></span></span> <span class="py-op">=</span> <span class="py-string">"unknown: %(error)s"</span> </span>
<span class="py-lineno"> 27</span>  <span class="py-line">    <span id="link-12" class="py-name"><a title="pytils.templatetags.pytils_dt.default_uvalue
pytils.templatetags.pytils_numeral.default_uvalue
pytils.templatetags.pytils_translit.default_uvalue" class="py-name" href="#" onclick="doclink('link-12', 'default_uvalue', 'Variable pytils.templatetags.pytils_dt.default_uvalue=pytils.templatetags.pytils_dt-module.html#default_uvalue,Variable pytils.templatetags.pytils_numeral.default_uvalue=pytils.templatetags.pytils_numeral-module.html#default_uvalue,Variable pytils.templatetags.pytils_translit.default_uvalue=pytils.templatetags.pytils_translit-module.html#default_uvalue'); return false;">default_uvalue</a></span></span> <span class="py-op">=</span> <span class="py-string">u"unknown: %(error)s"</span> </span>
<span class="py-lineno"> 28</span>  <span class="py-line"><span class="py-keyword">elif</span> <span id="link-13" class="py-name"><a title="pytils.templatetags.pytils_dt.show_value
pytils.templatetags.pytils_numeral.show_value
pytils.templatetags.pytils_translit.show_value" class="py-name" href="#" onclick="doclink('link-13', 'show_value', 'Variable pytils.templatetags.pytils_dt.show_value=pytils.templatetags.pytils_dt-module.html#show_value,Variable pytils.templatetags.pytils_numeral.show_value=pytils.templatetags.pytils_numeral-module.html#show_value,Variable pytils.templatetags.pytils_translit.show_value=pytils.templatetags.pytils_translit-module.html#show_value'); return false;">show_value</a></span></span><span class="py-op">:</span> </span>
<span class="py-lineno"> 29</span>  <span class="py-line">    <span id="link-14" class="py-name"><a title="pytils.templatetags.pytils_dt.default_value
pytils.templatetags.pytils_numeral.default_value
pytils.templatetags.pytils_translit.default_value" class="py-name" href="#" onclick="doclink('link-14', 'default_value', 'Variable pytils.templatetags.pytils_dt.default_value=pytils.templatetags.pytils_dt-module.html#default_value,Variable pytils.templatetags.pytils_numeral.default_value=pytils.templatetags.pytils_numeral-module.html#default_value,Variable pytils.templatetags.pytils_translit.default_value=pytils.templatetags.pytils_translit-module.html#default_value'); return false;">default_value</a></span></span> <span class="py-op">=</span> <span class="py-string">"%(value)s"</span> </span>
<span class="py-lineno"> 30</span>  <span class="py-line">    <span id="link-15" class="py-name"><a title="pytils.templatetags.pytils_dt.default_uvalue
pytils.templatetags.pytils_numeral.default_uvalue
pytils.templatetags.pytils_translit.default_uvalue" class="py-name" href="#" onclick="doclink('link-15', 'default_uvalue', 'Variable pytils.templatetags.pytils_dt.default_uvalue=pytils.templatetags.pytils_dt-module.html#default_uvalue,Variable pytils.templatetags.pytils_numeral.default_uvalue=pytils.templatetags.pytils_numeral-module.html#default_uvalue,Variable pytils.templatetags.pytils_translit.default_uvalue=pytils.templatetags.pytils_translit-module.html#default_uvalue'); return false;">default_uvalue</a></span></span> <span class="py-op">=</span> <span class="py-string">u"%(value)s"</span> </span>
<span class="py-lineno"> 31</span>  <span class="py-line"><span class="py-keyword">else</span><span class="py-op">:</span> </span>
<span class="py-lineno"> 32</span>  <span class="py-line">    <span id="link-16" class="py-name"><a title="pytils.templatetags.pytils_dt.default_value
pytils.templatetags.pytils_numeral.default_value
pytils.templatetags.pytils_translit.default_value" class="py-name" href="#" onclick="doclink('link-16', 'default_value', 'Variable pytils.templatetags.pytils_dt.default_value=pytils.templatetags.pytils_dt-module.html#default_value,Variable pytils.templatetags.pytils_numeral.default_value=pytils.templatetags.pytils_numeral-module.html#default_value,Variable pytils.templatetags.pytils_translit.default_value=pytils.templatetags.pytils_translit-module.html#default_value'); return false;">default_value</a></span></span> <span class="py-op">=</span> <span class="py-string">""</span> </span>
<span class="py-lineno"> 33</span>  <span class="py-line">    <span id="link-17" class="py-name"><a title="pytils.templatetags.pytils_dt.default_uvalue
pytils.templatetags.pytils_numeral.default_uvalue
pytils.templatetags.pytils_translit.default_uvalue" class="py-name" href="#" onclick="doclink('link-17', 'default_uvalue', 'Variable pytils.templatetags.pytils_dt.default_uvalue=pytils.templatetags.pytils_dt-module.html#default_uvalue,Variable pytils.templatetags.pytils_numeral.default_uvalue=pytils.templatetags.pytils_numeral-module.html#default_uvalue,Variable pytils.templatetags.pytils_translit.default_uvalue=pytils.templatetags.pytils_translit-module.html#default_uvalue'); return false;">default_uvalue</a></span></span> <span class="py-op">=</span> <span class="py-string">u""</span> </span>
<span class="py-lineno"> 34</span>  <span class="py-line"> </span>
<span class="py-lineno"> 35</span>  <span class="py-line"><span class="py-comment"># -- filters --</span> </span>
<span class="py-lineno"> 36</span>  <span class="py-line"><span class="py-comment"></span> </span>
<a name="distance_of_time"></a><div id="distance_of_time-def"><span class="py-lineno"> 37</span> <a class="py-toggle" href="#" id="distance_of_time-toggle" onclick="toggle('distance_of_time'); return false;">-</a><span class="py-line"><span class="py-keyword">def</span> <a class="py-def-name" href="pytils.templatetags.pytils_dt-module.html#distance_of_time">distance_of_time</a><span class="py-op">(</span><span class="py-param">from_time</span><span class="py-op">,</span> <span class="py-param">accuracy</span><span class="py-op">=</span><span class="py-number">1</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="distance_of_time-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="distance_of_time-expanded"><span class="py-lineno"> 38</span>  <span class="py-line">    <span class="py-docstring">"""</span> </span>
<span class="py-lineno"> 39</span>  <span class="py-line"><span class="py-docstring">    Display distance of time from current time.</span> </span>
<span class="py-lineno"> 40</span>  <span class="py-line"><span class="py-docstring"></span> </span>
<span class="py-lineno"> 41</span>  <span class="py-line"><span class="py-docstring">    Parameter is an accuracy level (deafult is 1).</span> </span>
<span class="py-lineno"> 42</span>  <span class="py-line"><span class="py-docstring">    Value must be numeral (i.e. time.time() result) or</span> </span>
<span class="py-lineno"> 43</span>  <span class="py-line"><span class="py-docstring">    datetime.datetime (i.e. datetime.datetime.now()</span> </span>
<span class="py-lineno"> 44</span>  <span class="py-line"><span class="py-docstring">    result).</span> </span>
<span class="py-lineno"> 45</span>  <span class="py-line"><span class="py-docstring"></span> </span>
<span class="py-lineno"> 46</span>  <span class="py-line"><span class="py-docstring">    Examples::</span> </span>
<span class="py-lineno"> 47</span>  <span class="py-line"><span class="py-docstring">        {{ some_time|distance_of_time }}</span> </span>
<span class="py-lineno"> 48</span>  <span class="py-line"><span class="py-docstring">        {{ some_dtime|distance_of_time:2 }}</span> </span>
<span class="py-lineno"> 49</span>  <span class="py-line"><span class="py-docstring">    """</span> </span>
<span class="py-lineno"> 50</span>  <span class="py-line">    <span class="py-keyword">try</span><span class="py-op">:</span> </span>
<span class="py-lineno"> 51</span>  <span class="py-line">        <span class="py-name">res</span> <span class="py-op">=</span> <span id="link-18" class="py-name"><a title="pytils.utils" class="py-name" href="#" onclick="doclink('link-18', 'utils', 'Module pytils.utils=pytils.utils-module.html'); return false;">utils</a></span></span><span class="py-op">.</span><span id="link-19" class="py-name"><a title="pytils.utils.provide_str" class="py-name" href="#" onclick="doclink('link-19', 'provide_str', 'Function pytils.utils.provide_str()=pytils.utils-module.html#provide_str'); return false;">provide_str</a></span></span><span class="py-op">(</span> </span>
<span class="py-lineno"> 52</span>  <span class="py-line">            <span id="link-20" class="py-name"><a title="pytils.dt" class="py-name" href="#" onclick="doclink('link-20', 'dt', 'Module pytils.dt=pytils.dt-module.html'); return false;">dt</a></span></span><span class="py-op">.</span><span id="link-21" class="py-name"><a title="pytils.dt.distance_of_time_in_words" class="py-name" href="#" onclick="doclink('link-21', 'distance_of_time_in_words', 'Function pytils.dt.distance_of_time_in_words()=pytils.dt-module.html#distance_of_time_in_words'); return false;">distance_of_time_in_words</a></span></span><span class="py-op">(</span><span class="py-name">from_time</span><span class="py-op">,</span> <span class="py-name">accuracy</span><span class="py-op">)</span><span class="py-op">,</span> </span>
<span class="py-lineno"> 53</span>  <span class="py-line">            <span id="link-22" class="py-name"><a title="pytils.templatetags.pytils_dt.encoding
pytils.templatetags.pytils_numeral.encoding
pytils.templatetags.pytils_translit.encoding" class="py-name" href="#" onclick="doclink('link-22', 'encoding', 'Variable pytils.templatetags.pytils_dt.encoding=pytils.templatetags.pytils_dt-module.html#encoding,Variable pytils.templatetags.pytils_numeral.encoding=pytils.templatetags.pytils_numeral-module.html#encoding,Variable pytils.templatetags.pytils_translit.encoding=pytils.templatetags.pytils_translit-module.html#encoding'); return false;">encoding</a></span></span><span class="py-op">,</span> </span>
<span class="py-lineno"> 54</span>  <span class="py-line">            <span class="py-name">default</span><span class="py-op">=</span><span id="link-23" class="py-name"><a title="pytils.templatetags.pytils_dt.default_value
pytils.templatetags.pytils_numeral.default_value
pytils.templatetags.pytils_translit.default_value" class="py-name" href="#" onclick="doclink('link-23', 'default_value', 'Variable pytils.templatetags.pytils_dt.default_value=pytils.templatetags.pytils_dt-module.html#default_value,Variable pytils.templatetags.pytils_numeral.default_value=pytils.templatetags.pytils_numeral-module.html#default_value,Variable pytils.templatetags.pytils_translit.default_value=pytils.templatetags.pytils_translit-module.html#default_value'); return false;">default_value</a></span></span><span class="py-op">)</span> </span>
<span class="py-lineno"> 55</span>  <span class="py-line">    <span class="py-keyword">except</span> <span class="py-name">Exception</span><span class="py-op">,</span> <span class="py-name">err</span><span class="py-op">:</span> </span>
<span class="py-lineno"> 56</span>  <span class="py-line">        <span class="py-comment"># because filter must die silently</span> </span>
<span class="py-lineno"> 57</span>  <span class="py-line"><span class="py-comment"></span>        <span class="py-keyword">try</span><span class="py-op">:</span> </span>
<span class="py-lineno"> 58</span>  <span class="py-line">            <span class="py-name">default_distance</span> <span class="py-op">=</span> <span class="py-string">"%s seconds"</span> <span class="py-op">%</span> <span class="py-name">str</span><span class="py-op">(</span><span class="py-name">int</span><span class="py-op">(</span><span class="py-name">time</span><span class="py-op">.</span><span class="py-name">time</span><span class="py-op">(</span><span class="py-op">)</span> <span class="py-op">-</span> <span class="py-name">from_time</span><span class="py-op">)</span><span class="py-op">)</span> </span>
<span class="py-lineno"> 59</span>  <span class="py-line">        <span class="py-keyword">except</span> <span class="py-name">Exception</span><span class="py-op">:</span> </span>
<span class="py-lineno"> 60</span>  <span class="py-line">            <span class="py-name">default_distance</span> <span class="py-op">=</span> <span class="py-string">""</span> </span>
<span class="py-lineno"> 61</span>  <span class="py-line">        <span class="py-name">res</span> <span class="py-op">=</span> <span id="link-24" class="py-name"><a title="pytils.templatetags.pytils_dt.default_value
pytils.templatetags.pytils_numeral.default_value
pytils.templatetags.pytils_translit.default_value" class="py-name" href="#" onclick="doclink('link-24', 'default_value', 'Variable pytils.templatetags.pytils_dt.default_value=pytils.templatetags.pytils_dt-module.html#default_value,Variable pytils.templatetags.pytils_numeral.default_value=pytils.templatetags.pytils_numeral-module.html#default_value,Variable pytils.templatetags.pytils_translit.default_value=pytils.templatetags.pytils_translit-module.html#default_value'); return false;">default_value</a></span></span> <span class="py-op">%</span> <span class="py-op">{</span><span class="py-string">'error'</span><span class="py-op">:</span> <span class="py-name">err</span><span class="py-op">,</span> <span class="py-string">'value'</span><span class="py-op">:</span> <span class="py-name">default_distance</span><span class="py-op">}</span> </span>
<span class="py-lineno"> 62</span>  <span class="py-line">    <span class="py-keyword">return</span> <span class="py-name">res</span> </span>
</div><span class="py-lineno"> 63</span>  <span class="py-line"> </span>
<a name="ru_strftime"></a><div id="ru_strftime-def"><span class="py-lineno"> 64</span> <a class="py-toggle" href="#" id="ru_strftime-toggle" onclick="toggle('ru_strftime'); return false;">-</a><span class="py-line"><span class="py-keyword">def</span> <a class="py-def-name" href="pytils.templatetags.pytils_dt-module.html#ru_strftime">ru_strftime</a><span class="py-op">(</span><span class="py-param">date</span><span class="py-op">,</span> <span class="py-param">format</span><span class="py-op">=</span><span class="py-string">"%d.%m.%Y"</span><span class="py-op">,</span> <span class="py-param">inflected_day</span><span class="py-op">=</span><span class="py-name">False</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="ru_strftime-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ru_strftime-expanded"><span class="py-lineno"> 65</span>  <span class="py-line">    <span class="py-docstring">"""</span> </span>
<span class="py-lineno"> 66</span>  <span class="py-line"><span class="py-docstring">    Russian strftime, formats date with given format.</span> </span>
<span class="py-lineno"> 67</span>  <span class="py-line"><span class="py-docstring"></span> </span>
<span class="py-lineno"> 68</span>  <span class="py-line"><span class="py-docstring">    Value is a date (supports datetime.date and datetime.datetime),</span> </span>
<span class="py-lineno"> 69</span>  <span class="py-line"><span class="py-docstring">    parameter is a format (string). For explainings about format,</span> </span>
<span class="py-lineno"> 70</span>  <span class="py-line"><span class="py-docstring">    see documentation for original strftime:</span> </span>
<span class="py-lineno"> 71</span>  <span class="py-line"><span class="py-docstring">    http://docs.python.org/lib/module-time.html</span> </span>
<span class="py-lineno"> 72</span>  <span class="py-line"><span class="py-docstring"></span> </span>
<span class="py-lineno"> 73</span>  <span class="py-line"><span class="py-docstring">    Examples::</span> </span>
<span class="py-lineno"> 74</span>  <span class="py-line"><span class="py-docstring">        {{ some_date|ru_strftime:"%d %B %Y, %A" }}</span> </span>
<span class="py-lineno"> 75</span>  <span class="py-line"><span class="py-docstring">    """</span> </span>
<span class="py-lineno"> 76</span>  <span class="py-line">    <span class="py-keyword">try</span><span class="py-op">:</span> </span>
<span class="py-lineno"> 77</span>  <span class="py-line">        <span class="py-name">uformat</span> <span class="py-op">=</span> <span id="link-25" class="py-name"><a title="pytils.utils" class="py-name" href="#" onclick="doclink('link-25', 'utils', 'Module pytils.utils=pytils.utils-module.html'); return false;">utils</a></span></span><span class="py-op">.</span><span id="link-26" class="py-name"><a title="pytils.utils.provide_unicode" class="py-name" href="#" onclick="doclink('link-26', 'provide_unicode', 'Function pytils.utils.provide_unicode()=pytils.utils-module.html#provide_unicode'); return false;">provide_unicode</a></span></span><span class="py-op">(</span><span class="py-name">format</span><span class="py-op">,</span> <span id="link-27" class="py-name"><a title="pytils.templatetags.pytils_dt.encoding
pytils.templatetags.pytils_numeral.encoding
pytils.templatetags.pytils_translit.encoding" class="py-name" href="#" onclick="doclink('link-27', 'encoding', 'Variable pytils.templatetags.pytils_dt.encoding=pytils.templatetags.pytils_dt-module.html#encoding,Variable pytils.templatetags.pytils_numeral.encoding=pytils.templatetags.pytils_numeral-module.html#encoding,Variable pytils.templatetags.pytils_translit.encoding=pytils.templatetags.pytils_translit-module.html#encoding'); return false;">encoding</a></span></span><span class="py-op">,</span> <span class="py-name">default</span><span class="py-op">=</span><span class="py-string">u"%d.%m.%Y"</span><span class="py-op">)</span> </span>
<span class="py-lineno"> 78</span>  <span class="py-line">        <span class="py-name">ures</span> <span class="py-op">=</span> <span id="link-28" class="py-name"><a title="pytils.dt" class="py-name" href="#" onclick="doclink('link-28', 'dt', 'Module pytils.dt=pytils.dt-module.html'); return false;">dt</a></span></span><span class="py-op">.</span><span id="link-29" class="py-name"><a title="pytils.dt.ru_strftime
pytils.templatetags.pytils_dt.ru_strftime" class="py-name" href="#" onclick="doclink('link-29', 'ru_strftime', 'Function pytils.dt.ru_strftime()=pytils.dt-module.html#ru_strftime,Function pytils.templatetags.pytils_dt.ru_strftime()=pytils.templatetags.pytils_dt-module.html#ru_strftime'); return false;">ru_strftime</a></span></span><span class="py-op">(</span><span class="py-name">uformat</span><span class="py-op">,</span> </span>
<span class="py-lineno"> 79</span>  <span class="py-line">                              <span class="py-name">date</span><span class="py-op">,</span> </span>
<span class="py-lineno"> 80</span>  <span class="py-line">                              <span class="py-name">inflected</span><span class="py-op">=</span><span class="py-name">True</span><span class="py-op">,</span> </span>
<span class="py-lineno"> 81</span>  <span class="py-line">                              <span class="py-name">inflected_day</span><span class="py-op">=</span><span class="py-name">inflected_day</span><span class="py-op">)</span> </span>
<span class="py-lineno"> 82</span>  <span class="py-line">        <span class="py-name">res</span> <span class="py-op">=</span> <span id="link-30" class="py-name"><a title="pytils.utils" class="py-name" href="#" onclick="doclink('link-30', 'utils', 'Module pytils.utils=pytils.utils-module.html'); return false;">utils</a></span></span><span class="py-op">.</span><span id="link-31" class="py-name"><a title="pytils.utils.provide_str" class="py-name" href="#" onclick="doclink('link-31', 'provide_str', 'Function pytils.utils.provide_str()=pytils.utils-module.html#provide_str'); return false;">provide_str</a></span></span><span class="py-op">(</span><span class="py-name">ures</span><span class="py-op">,</span> <span id="link-32" class="py-name"><a title="pytils.templatetags.pytils_dt.encoding
pytils.templatetags.pytils_numeral.encoding
pytils.templatetags.pytils_translit.encoding" class="py-name" href="#" onclick="doclink('link-32', 'encoding', 'Variable pytils.templatetags.pytils_dt.encoding=pytils.templatetags.pytils_dt-module.html#encoding,Variable pytils.templatetags.pytils_numeral.encoding=pytils.templatetags.pytils_numeral-module.html#encoding,Variable pytils.templatetags.pytils_translit.encoding=pytils.templatetags.pytils_translit-module.html#encoding'); return false;">encoding</a></span></span><span class="py-op">)</span> </span>
<span class="py-lineno"> 83</span>  <span class="py-line">    <span class="py-keyword">except</span> <span class="py-name">Exception</span><span class="py-op">,</span> <span class="py-name">err</span><span class="py-op">:</span> </span>
<span class="py-lineno"> 84</span>  <span class="py-line">        <span class="py-comment"># because filter must die silently</span> </span>
<span class="py-lineno"> 85</span>  <span class="py-line"><span class="py-comment"></span>        <span class="py-keyword">try</span><span class="py-op">:</span> </span>
<span class="py-lineno"> 86</span>  <span class="py-line">            <span class="py-name">default_date</span> <span class="py-op">=</span> <span class="py-name">date</span><span class="py-op">.</span><span class="py-name">strftime</span><span class="py-op">(</span><span class="py-name">format</span><span class="py-op">)</span> </span>
<span class="py-lineno"> 87</span>  <span class="py-line">        <span class="py-keyword">except</span> <span class="py-name">Exception</span><span class="py-op">:</span> </span>
<span class="py-lineno"> 88</span>  <span class="py-line">            <span class="py-name">default_date</span> <span class="py-op">=</span> <span class="py-string">""</span> </span>
<span class="py-lineno"> 89</span>  <span class="py-line">        <span class="py-name">res</span> <span class="py-op">=</span> <span id="link-33" class="py-name"><a title="pytils.templatetags.pytils_dt.default_value
pytils.templatetags.pytils_numeral.default_value
pytils.templatetags.pytils_translit.default_value" class="py-name" href="#" onclick="doclink('link-33', 'default_value', 'Variable pytils.templatetags.pytils_dt.default_value=pytils.templatetags.pytils_dt-module.html#default_value,Variable pytils.templatetags.pytils_numeral.default_value=pytils.templatetags.pytils_numeral-module.html#default_value,Variable pytils.templatetags.pytils_translit.default_value=pytils.templatetags.pytils_translit-module.html#default_value'); return false;">default_value</a></span></span> <span class="py-op">%</span> <span class="py-op">{</span><span class="py-string">'error'</span><span class="py-op">:</span> <span class="py-name">err</span><span class="py-op">,</span> <span class="py-string">'value'</span><span class="py-op">:</span> <span class="py-name">default_date</span><span class="py-op">}</span> </span>
<span class="py-lineno"> 90</span>  <span class="py-line">    <span class="py-keyword">return</span> <span class="py-name">res</span> </span>
</div><span class="py-lineno"> 91</span>  <span class="py-line"> </span>
<a name="ru_strftime_inflected"></a><div id="ru_strftime_inflected-def"><span class="py-lineno"> 92</span> <a class="py-toggle" href="#" id="ru_strftime_inflected-toggle" onclick="toggle('ru_strftime_inflected'); return false;">-</a><span class="py-line"><span class="py-keyword">def</span> <a class="py-def-name" href="pytils.templatetags.pytils_dt-module.html#ru_strftime_inflected">ru_strftime_inflected</a><span class="py-op">(</span><span class="py-param">date</span><span class="py-op">,</span> <span class="py-param">format</span><span class="py-op">=</span><span class="py-string">"%d.%m.%Y"</span><span class="py-op">,</span> <span class="py-param">inflected_day</span><span class="py-op">=</span><span class="py-name">True</span><span class="py-op">)</span><span class="py-op">:</span> </span>
</div><div id="ru_strftime_inflected-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ru_strftime_inflected-expanded"><span class="py-lineno"> 93</span>  <span class="py-line">    <span class="py-docstring">"""</span> </span>
<span class="py-lineno"> 94</span>  <span class="py-line"><span class="py-docstring">    Russian strftime with inflected day, formats date</span> </span>
<span class="py-lineno"> 95</span>  <span class="py-line"><span class="py-docstring">    with given format (similar to ru_strftime),</span> </span>
<span class="py-lineno"> 96</span>  <span class="py-line"><span class="py-docstring">    also inflects day in proper form.</span> </span>
<span class="py-lineno"> 97</span>  <span class="py-line"><span class="py-docstring"></span> </span>
<span class="py-lineno"> 98</span>  <span class="py-line"><span class="py-docstring">    Examples::</span> </span>
<span class="py-lineno"> 99</span>  <span class="py-line"><span class="py-docstring">        {{ some_date|ru_strftime_inflected:"in %A (%d %B %Y)"</span> </span>
<span class="py-lineno">100</span>  <span class="py-line"><span class="py-docstring">    """</span> </span>
<span class="py-lineno">101</span>  <span class="py-line">    <span class="py-keyword">return</span> <span id="link-34" class="py-name"><a title="pytils.dt.ru_strftime
pytils.templatetags.pytils_dt.ru_strftime" class="py-name" href="#" onclick="doclink('link-34', 'ru_strftime', 'Function pytils.dt.ru_strftime()=pytils.dt-module.html#ru_strftime,Function pytils.templatetags.pytils_dt.ru_strftime()=pytils.templatetags.pytils_dt-module.html#ru_strftime'); return false;">ru_strftime</a></span></span><span class="py-op">(</span><span class="py-name">date</span><span class="py-op">,</span> <span class="py-name">format</span><span class="py-op">,</span> <span class="py-name">inflected_day</span><span class="py-op">)</span> </span>
</div><span class="py-lineno">102</span>  <span class="py-line"> </span>
<span class="py-lineno">103</span>  <span class="py-line"><span class="py-comment"># -- register filters</span> </span>
<span class="py-lineno">104</span>  <span class="py-line"><span class="py-comment"></span><span id="link-35" class="py-name"><a title="pytils.templatetags.pytils_dt.register
pytils.templatetags.pytils_numeral.register
pytils.templatetags.pytils_translit.register" class="py-name" href="#" onclick="doclink('link-35', 'register', 'Variable pytils.templatetags.pytils_dt.register=pytils.templatetags.pytils_dt-module.html#register,Variable pytils.templatetags.pytils_numeral.register=pytils.templatetags.pytils_numeral-module.html#register,Variable pytils.templatetags.pytils_translit.register=pytils.templatetags.pytils_translit-module.html#register'); return false;">register</a></span></span><span class="py-op">.</span><span class="py-name">filter</span><span class="py-op">(</span><span class="py-string">'distance_of_time'</span><span class="py-op">,</span> <span id="link-36" class="py-name"><a title="pytils.templatetags.pytils_dt.distance_of_time" class="py-name" href="#" onclick="doclink('link-36', 'distance_of_time', 'Function pytils.templatetags.pytils_dt.distance_of_time()=pytils.templatetags.pytils_dt-module.html#distance_of_time'); return false;">distance_of_time</a></span></span><span class="py-op">)</span> </span>
<span class="py-lineno">105</span>  <span class="py-line"><span id="link-37" class="py-name"><a title="pytils.templatetags.pytils_dt.register
pytils.templatetags.pytils_numeral.register
pytils.templatetags.pytils_translit.register" class="py-name" href="#" onclick="doclink('link-37', 'register', 'Variable pytils.templatetags.pytils_dt.register=pytils.templatetags.pytils_dt-module.html#register,Variable pytils.templatetags.pytils_numeral.register=pytils.templatetags.pytils_numeral-module.html#register,Variable pytils.templatetags.pytils_translit.register=pytils.templatetags.pytils_translit-module.html#register'); return false;">register</a></span></span><span class="py-op">.</span><span class="py-name">filter</span><span class="py-op">(</span><span class="py-string">'ru_strftime'</span><span class="py-op">,</span> <span id="link-38" class="py-name"><a title="pytils.dt.ru_strftime
pytils.templatetags.pytils_dt.ru_strftime" class="py-name" href="#" onclick="doclink('link-38', 'ru_strftime', 'Function pytils.dt.ru_strftime()=pytils.dt-module.html#ru_strftime,Function pytils.templatetags.pytils_dt.ru_strftime()=pytils.templatetags.pytils_dt-module.html#ru_strftime'); return false;">ru_strftime</a></span></span><span class="py-op">)</span> </span>
<span class="py-lineno">106</span>  <span class="py-line"><span id="link-39" class="py-name"><a title="pytils.templatetags.pytils_dt.register
pytils.templatetags.pytils_numeral.register
pytils.templatetags.pytils_translit.register" class="py-name" href="#" onclick="doclink('link-39', 'register', 'Variable pytils.templatetags.pytils_dt.register=pytils.templatetags.pytils_dt-module.html#register,Variable pytils.templatetags.pytils_numeral.register=pytils.templatetags.pytils_numeral-module.html#register,Variable pytils.templatetags.pytils_translit.register=pytils.templatetags.pytils_translit-module.html#register'); return false;">register</a></span></span><span class="py-op">.</span><span class="py-name">filter</span><span class="py-op">(</span><span class="py-string">'ru_strftime_inflected'</span><span class="py-op">,</span> <span id="link-40" class="py-name"><a title="pytils.templatetags.pytils_dt.ru_strftime_inflected" class="py-name" href="#" onclick="doclink('link-40', 'ru_strftime_inflected', 'Function pytils.templatetags.pytils_dt.ru_strftime_inflected()=pytils.templatetags.pytils_dt-module.html#ru_strftime_inflected'); return false;">ru_strftime_inflected</a></span></span><span class="py-op">)</span> </span>
<span class="py-lineno">107</span>  <span class="py-line"> </span><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pytils-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">Generated by Epydoc
        3.0alpha3 on Sun Oct 29 00:35:03 2006</td>
    <td align="right" class="footer">
      <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie()
  // -->
</script>
  
</body>
</html>
